home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1365 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: Norway.EU.net!usenet
  2. From: sb@metis.no (Steinar Bang)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [Q] same template name with template-arg-list
  5. Date: 10 Jan 1996 18:11:32 +0100
  6. Organization: AT&T GIS Norge AS, Horten, Norway
  7. Sender: sb@balder.metis.no
  8. Message-ID: <wh7mz03rgb.fsf@balder.metis.no>
  9. References: <whlong48ht.fsf@balder.metis.no>
  10.  <30F3B61D.1CFBAE39@intellektik.informatik.th-darmstadt.de>
  11. NNTP-Posting-Host: balder.metis.no
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=US-ASCII
  14. In-reply-to: Enno Sandner's message of Wed, 10 Jan 1996 13:50:37 +0100
  15. X-Newsreader: Gnus v5.0.12
  16.  
  17. >>>> "ES" == Enno Sandner <enno@intellektik.informatik.th-darmstadt.de> writes:
  18.  
  19.  ES> But you can have sth. similar called 'template specialization'.
  20.  ES> For example the former template could be seen as specialization
  21.  ES> of the latter template:
  22.  
  23.  ES>     template<class T,int len> class sequence { ... };
  24.  ES>     template<class T> class sequence<T,0> { ... };
  25.  
  26. Yup.  I found this in the ANSI draft (section 14.6), and I tried it in
  27. gcc 2.7.2... and promptly triggered a compiler bug...:-)
  28.  
  29.   <URL:news:199601101504.QAA29290@balder.metis.no>
  30.  
  31. Oh well, it'll probably work at some point.  For now, I'll just have
  32. to find a workaround.  In any case, this does what I want to do, or
  33. close enough, anyways.
  34.  
  35. - Steinar
  36.